#include <iostream>
#include <thread>

using namespace std;

void print(string msg){
    cout << msg << endl;
}


int main() {
    thread thread1(print, "hello");

//    thread1.detach(); 基本不用

    if(thread1.joinable()){
        thread1.join();
    }

    return 0;
}
